<?php namespace Common\Model;
use Hdphp\Model\Model;

class Arctag extends Model{
    protected $table='article_tag';

    public function store($aid){
        foreach(Q('post.tid',array())as $tid){
            $data=array(
                'article_aid'=>$aid,
                'tag_tid'=>$tid
            );
            $this->add($data);
        }
    }
}